package com.example.logistics_oa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.OvertimeBonus;
import com.example.logistics_oa.service.OvertimeBonusService;
import com.example.logistics_oa.mapper.OvertimeBonusMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 安徽彭于晏
* @description 针对表【overtime_bonus】的数据库操作Service实现
* @createDate 2022-10-17 19:49:42
*/
@Service
public class OvertimeBonusServiceImpl extends ServiceImpl<OvertimeBonusMapper, OvertimeBonus>
    implements OvertimeBonusService{

    @Autowired
    OvertimeBonusMapper overtimeBonusMapper;

    @Override
    public List<OvertimeBonus> selectAll() {
        return overtimeBonusMapper.selectAll();
    }

    @Override
    public int updaJiaBanStatus(int obId) {
        return overtimeBonusMapper.updaJiaBanStatus(obId);
    }

    @Override
    public int updaJiaBanStatus2(int obId) {
        return overtimeBonusMapper.updaJiaBanStatus2(obId);
    }

    @Override
    public int updaJiaBanJiangJin(Double obLimit, int obId) {
        return overtimeBonusMapper.updaJiaBanJiangJin(obLimit, obId);
    }

    @Override
    public List<OvertimeBonus> selectByObId(int obId) {
        return overtimeBonusMapper.selectByObId(obId);
    }
}




